	package dao;

import java.util.List;

import entity.tDevice;
import entity.PageBean;

public interface tDeviceDao {
	
	public void add(tDevice tdevice);
	
	public List<tDevice> searchById(String deviceId);
	
	public List<tDevice> searchBymac(String mac);
	
	public List<tDevice> search();
	
	public List<tDevice> searchdeviceNo(String deviceNo);
	
	public List<tDevice> searchBydeviceNo(String searchvalue,int pageSize,int page);
	
	public List<tDevice> searchByuserName(String searchvalue);
	
	public List<tDevice> searchBytDeviceArea(String searchvalue);
	
	public List<tDevice> searchAlltDevice();
	
//	public List<tDevice> searchBydeviceArea(String deviceArea);
	
	public List<tDevice> searchByIndustry(String industry);
	
	public List<tDevice> seatchdeviceNamevalue(String values);
	
	public List<tDevice> seatchdeviceNovalue(String values);
	
	public void update(tDevice tdevice);
	
	public void delete();
	
	public long getCount(String hql);
	
	public List<tDevice> searchBytArea(String tAreaId,int pageSize,int page);
	
	
	
	public List queryForPage(final String hql,final int offset,final int length);
    
    /** *//**
     * 查询所有记录数
     * @param hql 查询的条件
     * @return 总记录数
     */
    public int getAllRowCount(String hql);

}
